-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CRE-44] Add restricted configuration; validate transformer values #15961
base: develop
Are you sure you want to change the base?
Conversation
AER Report: CI Coreaer_workflow , commit , Clean Go Tidy & Generate , Detect Changes , Scheduled Run Frequency , GolangCI Lint (core/scripts) , GolangCI Lint (.) , GolangCI Lint (integration-tests/load) , test-scripts , Core Tests (go_core_tests) , GolangCI Lint (integration-tests) , Core Tests (go_core_tests_integration) , Core Tests (go_core_ccip_deployment_tests) , GolangCI Lint (deployment) , Core Tests (go_core_fuzz) , Core Tests (go_core_race_tests) , SonarQube Scan , lint 1. Missing method in PluginFactoryConstructor:go_core_race_testsSource of Error:../../../go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/execute/factory.go:247:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 2. Missing method in PluginFactoryConstructor:go_core_race_testsSource of Error:../../../go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/commit/factory.go:304:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 3. Unused variables and imports:deploymentSource of Error:deployment/ccip/changeset/cs_active_candidate_test.go:139:3: declared and not used: block (typecheck)
deployment/ccip/changeset/cs_active_candidate_test.go:193:2: declared and not used: tokenConfig (typecheck)
deployment/ccip/changeset/cs_ccip_home_test.go:34:2: declared and not used: envNodes (typecheck)
deployment/ccip/changeset/cs_ccip_home_test.go:241:4: declared and not used: tokenConfig (typecheck)
deployment/ccip/changeset/cs_ccip_home_test.go:354:4: declared and not used: tokenConfig (typecheck)
deployment/ccip/changeset/cs_active_candidate_test.go:4:2: "math/big" imported and not used (typecheck)
deployment/ccip/changeset/cs_active_candidate_test.go:23:2: "github.com/smartcontractkit/chainlink/v2/core/logger" imported and not used (typecheck)
deployment/ccip/changeset/cs_ccip_home_test.go:4:2: "math/big" imported and not used (typecheck)
deployment/ccip/changeset/cs_ccip_home_test.go:13:2: "github.com/smartcontractkit/chainlink-ccip/chainconfig" imported and not used (typecheck)
deployment/ccip/changeset/cs_ccip_home_test.go:14:2: "github.com/smartcontractkit/chainlink-ccip/pkg/types/ccipocr3" imported as cciptypes and not used (typecheck)
deployment/ccip/changeset/cs_ccip_home_test.go:22:2: "github.com/smartcontractkit/chainlink/v2/core/logger" imported and not used (typecheck)
deployment/common/changeset/set_config_mcms_test.go:36:2: declared and not used: config (typecheck)
deployment/common/changeset/example/link_transfer_test.go:35:2: declared and not used: config (typecheck)
deployment/keystone/changeset/accept_ownership_test.go:54:2: declared and not used: timelock (typecheck)
deployment/keystone/changeset/append_node_capabilities_test.go:91:3: declared and not used: contracts (typecheck)
deployment/keystone/changeset/deploy_ocr3_test.go:276:3: declared and not used: contracts (typecheck)
deployment/keystone/changeset/update_don_test.go:114:3: declared and not used: contracts (typecheck)
deployment/keystone/changeset/internal/deploy_test.go:21:3: declared and not used: registry (typecheck)
deployment/keystone/changeset/internal/deploy_test.go:91:3: declared and not used: registry (typecheck)
deployment/keystone/changeset/internal/deploy_test.go:126:3: declared and not used: registry (typecheck) Why: The code contains variables and imports that are declared but not used, leading to typecheck errors. Suggested fix: Remove the unused variables and imports to clean up the code and resolve the typecheck errors. 4. Missing method in PluginFactoryConstructor:go_core_tests_integrationSource of Error:../../../go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/execute/factory.go:247:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 5. Missing method in PluginFactoryConstructor:go_core_tests_integrationSource of Error:../../../go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/commit/factory.go:304:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 6. Missing method in PluginFactoryConstructor:test-scriptsSource of Error:/home/runner/go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/execute/factory.go:247:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 7. Missing method in PluginFactoryConstructor:test-scriptsSource of Error:/home/runner/go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/commit/factory.go:304:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 8. Missing method in PluginFactoryConstructor:go_core_ccip_deployment_testsSource of Error:../../../go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/execute/factory.go:247:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 9. Missing method in PluginFactoryConstructor:go_core_ccip_deployment_testsSource of Error:../../../go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/commit/factory.go:304:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 10. Linter error:integration-tests/loadSource of Error:
Why: The linter failed to load the package Suggested fix: Ensure that the package 11. Unused variable:integration-testsSource of Error:integration-tests/smoke/ccip/ccip_usdc_test.go:53:2: declared and not used: ownerChainB (typecheck) Why: The variable Suggested fix: Remove the unused variable 12. Missing method in PluginFactoryConstructor:go_core_fuzzSource of Error:../../../go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/commit/factory.go:304:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 13. Missing method in PluginFactoryConstructor:go_core_fuzzSource of Error:../../../go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/execute/factory.go:247:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 14. Missing method in PluginFactoryConstructor:go_core_testsSource of Error:../../../go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/execute/factory.go:247:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the 15. Missing method in PluginFactoryConstructor:go_core_testsSource of Error:../../../go/pkg/mod/github.com/smartcontractkit/chainlink-ccip@v0.0.0-20250110181647-9dba278f2103/commit/factory.go:304:40: cannot use &PluginFactoryConstructor{} (value of type *PluginFactoryConstructor) as core.OCR3ReportingPluginClient value in variable declaration: *PluginFactoryConstructor does not implement core.OCR3ReportingPluginClient (missing method Close) Why: The Suggested fix: Implement the AER Report: Operator UI CI ran successfully ✅ |
Quality Gate passedIssues Measures |
This resolves CRE-44 using two distinct solutions: